package top.kaoshanji.p1ch02a;

/**
 * 仅仅选出绿苹果
 * author kaoshanji
 * ^_^
 * create time 2025/2/10 10:31
 */
public class AppleColorPredicate implements ApplePredicate {

    @Override
    public boolean test(Apple apple) {
        return apple.getColor() == Color.GREEN;
    }
}
